package short_drama

import (
	"context"
	v1 "video-api/api/v1"
	"video-api/internal/model/out"
	"video-api/internal/service"
)

type shortDramaControllerV2 struct {
	shortDramaController
}

var ShortDramaHandleV2 = new(shortDramaControllerV2)

// GetShortDramasList 短剧列表
func (c *shortDramaControllerV2) GetShortDramasList(ctx context.Context, req *v1.ShortDramasReq) (res *out.Paging, err error) {
	list, count, err := service.ShortDramaService().GetList(ctx, &req.ShortDramaList)
	if err != nil {
		return nil, err
	}
	//res = new(v1.ShortDramasRes)
	//res.List = list
	return out.FillPaging(count, req.Page, req.PageSize, list), nil
}
